<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="_progressreport" />
<title>工程进度</title>
<script type="text/javascript">
	
	function addOrupdate(param){
		var  paramtype = param.substring(0,param.indexOf('='));
		var url = '${ctx}/project/progressreport!input.action?';
		url = url + param ;
		mm = openWindowAsDialog(url);
	    if (mm != null) {
	    	 	window.location.reload();										
			}		
	}
	
</script>
</head>
<body>
<div id="heading" class="progressreport"><h6>工程进度</h6></div>
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<form id="mainForm" action="progressreport.action" method="get" class="yform">
<div id="content">
<table id="contentTable">
	<tr>
		<th>序号</th>
		<th><a href="javascript:sort('projectId','asc')">工程</a></th>
		<th>进度类型</th>
		<th><a href="javascript:sort('finishInvestmentPercent','asc')">投资完成率(%)</a></th>
		<th><a href="javascript:sort('progressPercent','asc')">形象进度(%)</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="proGre" varStatus="status">
		<tr>
			<td>${page.first+status.index}</td>
			<td>${proGre.project.projName}</td>
			<td><c:if test="${empty proGre.signId}">工程进度</c:if>
			<c:if test="${not empty proGre.signId }">施工段进度</c:if>
			 </td>
			<td>${proGre.finishInvestmentPercent}</td>
			<td>${proGre.progressPercent}</td>
			<td><a
				href="#" onclick="addOrupdate('id=${proGre.id}');">编辑</a> <a
				href="${ctx}/project/progressreport!delete.action?id=${proGre.id}&projectId=${proGre.project.id}" onclick="return confirmDelete();">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<div class="type-button"><input type="button" onclick="addOrupdate('projectId=${param.projectId}');"  class="submit" value="新增" /></div>
</form>
</body>
</html>
